Integration path override in densitymatrix
and josephson
#309
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When creating a
ρ = densitymatrix(gs, ωpoints; kw...)
orJ = josephson(gs, ωpoints; kw...)
object using the generic integration algorithm, one specifies the integration path throughωpoints
(see #307 ). However, it may be necessary to override the shape of the path as a function of parameters or temperature, for example, which are not known until we actually evaluate the object withρ(µ, kBT; params...)
orJ(kBT; params...)
. For this reason we provide here an advance call syntaxwhere
override
can be a collection ofωpoints
that replace the originalωpoints
, or a function that is applied to them before integration. For technical reasons the override syntax is currently only supported if the originalωpoints
are not all real (since in that case a different sawtooth transform takes place as per the docstrings)